<?php 
if(!defined('INSIDE')){
	exit("Access Denied");
}

execute_action();

function execute_action(){
	global $_GVAR;
	
	$action = $_GVAR['cur_act'];
	$action_result = null;
	
	if(function_exists($action)) {
		$action_result = $action();
	}
	else {
		echo "函数{$action}未定义";
	}
	
	$_GVAR['action_result'] = $action_result;
}

function index() {
	return "member/index";
}

function login() {
	return "member/login";
}

function dologin() {
	return "member/index";
}

?>